<% db_parameter_groups.each do |parameter_group| -%>
resource "aws_db_parameter_group" "<%= module_name_of(parameter_group) %>" {
    name        = "<%= parameter_group.db_parameter_group_name %>"
    family      = "<%= parameter_group.db_parameter_group_family %>"
    description = "<%= parameter_group.description %>"

<% db_parameters_in(parameter_group).each do |parameter| -%>
    parameter {
        name         = "<%= parameter.parameter_name %>"
        value        = "<%= parameter.parameter_value || '' %>"
        apply_method = "<%= parameter.apply_method || 'immediate' %>"
    }

<% end -%>
}

<% end -%>
